<!-- BEGIN: center-->
<script language="JavaScript">
	function doLogin(){
		var frm = document.frmLogin;
		if(frm.username.value == ''){
			alert('Ban vui long dang nhap ten tai khoan');
			frm.username.focus();
			return false;
		}
		if(frm.password.value == ''){
			alert('Ban vui long nhap mat khau');
			frm.password.focus();
			return false;
		}
		frm.submit();
	}
	function goRegister(){
		window.location = "?mod=member&act=register";
	}
</script>
<form name="frmLogin" method="post" action="index.php?mod=member&act=login">
	<input type="hidden" name="frmAct" value="doLogin" />
<table cellpadding="3" cellspacing="3" border="0" width="100%">
	<!-- BEGIN: blockFalse-->
	<tr>
		<td colspan="2">
			Ban da dang nhap sai username hoac password, vui long nhap lai
		</td>
	</tr>
	<!-- END: blockFalse-->
	<!-- BEGIN: blockInActive-->
	<tr>
		<td colspan="2">
			Tai khan cua ban da bi khoa
		</td>
	</tr>
	<!-- END: blockInActive-->
	<tr>
		<td colspan="2" style="font-size: 16px;font-weight: bold;">Member Login</td>
	</tr>
	<tr>
		<td width="100" align="right">User Name:</td>
		<td><input name="username" type="text" value="" style="width: 200px;" autocomplete="off" /></td>
	</tr>
	<!-- BEGIN: blockuser -->
	<tr>
		<td width="100" align="right">User Name:</td>
		<td><input name="username" type="text" value="{username}" style="width: 200px;" autocomplete="off" /></td>
	</tr>
	<!-- END: blockuser -->
	<tr>
		<td align="right">Password:</td>
		<td><input name="password" type="password" value="" style="width: 200px;" autocomplete="off" /></td>
	</tr>
	<tr>
		<td colspan="2" align="center">
			<input type="button" value="Register" name="Register" onclick="goRegister();" />
			<input type="button" value="Login" name="Login" onclick="doLogin();" />
		</td>
	</tr>
</table>
</form>
<!-- END: center-->